<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Read a FDF document from a string</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.fdf-next-field-name.html">fdf_next_field_name</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.fdf-open.html">fdf_open</a></div>
 <div class="up"><a href="ref.fdf.html">FDF 函数</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="function.fdf-open-string" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">fdf_open_string</h1>
  <p class="verinfo">(PHP 4 &gt;= 4.3.0, PHP 5)</p><p class="refpurpose"><span class="refname">fdf_open_string</span> &mdash; <span class="dc-title">Read a FDF document from a string</span></p>

 </div>
 
 <div class="refsect1 description" id="refsect1-function.fdf-open-string-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="type">resource</span> <span class="methodname"><strong>fdf_open_string</strong></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$fdf_data</code></span>
   )</div>

  <p class="para rdfs-comment">
   Reads form data from a string. 
  </p>
  <p class="para">
   You can use <span class="function"><strong>fdf_open_string()</strong></span> together with
   <var class="varname"><var class="varname">$HTTP_FDF_DATA</var></var> to process FDF form input from a remote
   client.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.fdf-open-string-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>

    
     <dt>
<em><code class="parameter">fdf_data</code></em></dt>

     <dd>

      <p class="para">
       The data as returned from a PDF form or created using 
       <span class="function"><a href="function.fdf-create.html" class="function">fdf_create()</a></span> and 
       <span class="function"><a href="function.fdf-save-string.html" class="function">fdf_save_string()</a></span>.
      </p>
     </dd>

    
   </dl>

  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.fdf-open-string-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   Returns a FDF document handle, or <strong><code>FALSE</code></strong> on error.
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-function.fdf-open-string-examples">
  <h3 class="title">范例</h3>
  <p class="para">
   <div class="example" id="example-3393">
    <p><strong>Example #1 Accessing the form data</strong></p>
    <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000">
<span style="color: #0000BB">&lt;?php<br />$fdf&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">fdf_open_string</span><span style="color: #007700">(</span><span style="color: #0000BB">$HTTP_FDF_DATA</span><span style="color: #007700">);<br /></span><span style="color: #FF8000">/*&nbsp;...&nbsp;*/<br /></span><span style="color: #0000BB">fdf_close</span><span style="color: #007700">(</span><span style="color: #0000BB">$fdf</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">?&gt;</span>
</span>
</code></div>
    </div>

   </div>
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.fdf-open-string-seealso">
  <h3 class="title">参见</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member"><span class="function"><a href="function.fdf-open.html" class="function" rel="rdfs-seeAlso">fdf_open()</a> - Open a FDF document</span></li>
    <li class="member"><span class="function"><a href="function.fdf-close.html" class="function" rel="rdfs-seeAlso">fdf_close()</a> - Close an FDF document</span></li>
    <li class="member"><span class="function"><a href="function.fdf-create.html" class="function" rel="rdfs-seeAlso">fdf_create()</a> - Create a new FDF document</span></li>
    <li class="member"><span class="function"><a href="function.fdf-save-string.html" class="function" rel="rdfs-seeAlso">fdf_save_string()</a> - Returns the FDF document as a string</span></li>
   </ul>
  </p>
 </div>


</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.fdf-next-field-name.html">fdf_next_field_name</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.fdf-open.html">fdf_open</a></div>
 <div class="up"><a href="ref.fdf.html">FDF 函数</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
